package com.guigu.gulicommon.constant.enumes.res;

import com.guigu.gulicommon.api.BaseResCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum AuthResCode implements BaseResCode {
    //----------------------------------------------------------------------------------成功
    AUTHENTICATION_SUCCESS(200, "身份认证成功"), LOGIN_SUCCESS(200, "登录成功"),
    //----------------------------------------------------------------------------------失败
    MEMBER_NAME_OR_PASSWORD_ERROR(401, "用户名或密码错误"),
    AUTHENTICATION_FAIL(401, "身份认证失败,请重新登陆"),
    LOGIN_EXPIRED(401, "登录过期,请重新登陆"),
    LOGIN_FAIL(401, "登录失败"),
    LOGIN_INFORMATION_DOES_NOT_EXIST(401, "登录信息不存在,请登陆")
    ;
    private final Integer code;
    private final String msg;
}
